{{ define "admin/nav/add.html" }}
{{ template "admin/common/page_header.html" .}}



<div class="row">
    <div class="col-lg-12">
        <div class="card">
            <div class="card-body">
                <form action="/admin/focus/doAdd" method="post" enctype="multipart/form-data">
                    <div class="form-group row">
                        <label class="col-sm-2 control-label" for="title">名　　称</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="title" name="title" value="" placeholder="请输入标题">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 control-label" for="position">导航位置</label>
                        <div class="col-sm-10">
                            <div class="form-controls">
                                <select name="position" class="form-control" id="position">
                                    <option value="1">顶部</option>
                                    <option value="2" selected>中间</option>
                                    <option value="3">底部</option>
                                </select>
                            </div>
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-sm-2 control-label" for="relation">关联商品</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="relation" name="relation" value="" placeholder="请输入跳转地址">
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-sm-2 control-label" for="link">导航链接地址</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="link" name="link" value="" placeholder="导航链接地址">
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-sm-2 control-label" for="is_opennew">新窗口打开</label>
                        <div class="col-sm-10">
                            <select name="is_opennew" id="is_opennew" class="form-control">
                                <option value="1">否</option>
                                <option value="2">是</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-sm-2 control-label" for="status">排序</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="sort" name="sort" value="10" placeholder="排序">
                        </div>

                    </div>

                    <div class="form-group row">
                        <label class="col-sm-2 control-label" for="status">状　　态</label>
                        <div class="col-sm-10">
                            <div class="clearfix">
                                <div class="custom-control custom-radio custom-control-inline">
                                    <input type="radio" id="statusOne" name="status" class="custom-control-input" checked value="1">
                                    <label class="custom-control-label" for="statusOne">显示</label>
                                </div>
                                <div class="custom-control custom-radio custom-control-inline">
                                    <input type="radio" id="statusTwo" name="status" class="custom-control-input" value="0">
                                    <label class="custom-control-label" for="statusTwo">隐藏</label>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="form-group col-md-12">
                        <button type="submit" class="btn btn-primary ajax-post" target-form="add-form">确 定</button>
                        <button type="button" class="btn btn-default" onclick="javascript:history.back(-1);return false;">返 回</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>


{{end}}